#include "log_manager.h"

namespace lib_wrapper {
LogManager& LogManager::instance() {
    static LogManager m_instance;
    return m_instance;
}

void LogManager::set_logger(std::shared_ptr<ILogger> logger) {
    logger_ = std::move(logger);
}

std::shared_ptr<ILogger>
LogManager::get_logger() const { return logger_; }

void set_logger(std::shared_ptr<ILogger> logger) {
    LogManager::instance().set_logger(std::move(logger));
}
} // namespace lib_wrapper
